why does "UInt64[] arr=new UInt64[UInt64.MaxValue];" throw exception ?

Posted by Techee on Stack Overflow See other posts from Stack Overflow or by Techee
Published on 2010-03-19T13:18:39Z Indexed on 2010/03/19 13:21 UTC
Read the original article Hit count: 206

Filed under:

Why does following code throw exception "Arithmetic operation resulted in an overflow." ?

UInt64[] arr=new UInt64[UInt64.MaxValue];

© Stack Overflow or respective owner

Related posts about c#